<%@ taglib uri="/WEB-INF/myfaces_html.tld" 	prefix="h" %>
<%@ taglib uri="/WEB-INF/myfaces_core.tld" 	prefix="f" %>
<%@ taglib uri="/WEB-INF/tomahawk.tld"     	prefix="t" %>
<f:view>    
    <jsp:include page="/intestazione.jsp">
        <jsp:param name="titolo" value="Gestione Aspetti"/>
    </jsp:include>
    <jsp:include page="/menu.jsp"/>
    <script language="javascript" src="./script/popup_full_center.js"></script>
    <script language="javascript" src="./script/ripristinoSessione.js"></script>
    <br />
    <table class="dataTableGestisci_Table" style="border: 2pt solid white; margin-bottom: -15px;" align="center">
        <hr />
        <tr>  
            <td class="intestazionePagina" align="center">
            <strong>GESTIONE ASPETTI</strong></td>                        
        </tr>        
    </table>
    
    <h:panelGrid styleClass="navigazione_Table"/>        
    <h:form id="erroriDataBase" rendered="false">
        <f:verbatim><table><td align="left" class="messaggiErrore" height="2px"></f:verbatim>           
        <h:messages style="color: red" showDetail="true" showSummary="false"/>
        <f:verbatim></td></table></f:verbatim>
    </h:form>  
    <h:form>
        <t:saveState value="#{beanAspetto}"/>            
        <t:panelTab id="tab1" label="categoria">
            <t:dataTable id="gestisciCategoria" var="lista" value="#{gestisci.listaOggetti}" rows="10" preserveDataModel="true"           
                styleClass="dataTableGestisci_Table" 
                headerClass="dataTableGestisci_Header"
                rowClasses="dataTableGestisci_Row1, dataTableGestisci_Row2"          
                columnClasses="dataTableGestisci_Column" 
                rowOnMouseOver="this.style.backgroundColor='orange'"
                rowOnMouseOut="this.style.backgroundColor=''">  
             
                <t:column width="10%">
                    <f:facet name="header">
                        <t:outputText value="Codice" />
                    </f:facet>
                    <t:outputText value="#{lista.codice}" /> 
                </t:column>
            
                <t:column width="90%">
                    <f:facet name="header"  >
                        <t:outputText value="Descrizione" />
                    </f:facet>
                    <t:outputText value="#{lista.descrizione}" /> 
                </t:column>          
            
                <t:column width="2%" headerstyleClass="dataTableGestisci_Header_Trasparent">
                    <f:facet name="header">
                        <t:outputText value=""/>
                    </f:facet>
                    <h:commandLink dir="RTL" title="dettaglio Storico" action="#{gestisci.caricaOggettoLista}">
                        <t:graphicImage url="/image/visualizza.png" border="0"/>
                        <f:param name="idBean" value="#{lista.id}" />
                        <f:param name="nomeBean" value="beanAspetto" />                            
                    </h:commandLink>
                </t:column>
            </t:dataTable>   
            <f:verbatim><table></f:verbatim>
            <f:verbatim><tr></f:verbatim>                
            <f:verbatim><td></f:verbatim>                
            <h:commandLink styleClass="commandLink_Style" dir="RTL" action="benvenuto" >
                <t:graphicImage url="/image/go-home.png" border="0"/>
            </h:commandLink>              
            <f:verbatim></td></f:verbatim>                
            <f:verbatim><td width="90%" align="center"></f:verbatim>                
            <h:panelGrid columns="2" align="center">
                <t:dataScroller id="scroller" paginatorActiveColumnStyle="background: white" for="gestisciCategoria" fastStep="10" 
                    rowsCountVar="rowsCount" displayedRowsCountVar="displayedRowsCountVar" paginator="false" 
                    paginatorMaxPages="20">
                    <f:facet name="previous">
                        <t:graphicImage url="/image/asinistra.gif" border="0" />
                    </f:facet>
                    <f:facet name="next">
                        <t:graphicImage url="/image/adestra.gif" border="0" />
                    </f:facet>
                </t:dataScroller>
            </h:panelGrid>
            <f:verbatim></td></f:verbatim>   
            <f:verbatim><td></f:verbatim>    
            <t:commandLink action="#{gestisci.tornaDettaglio}">
                <t:graphicImage url="image/undo.png" border="0" title="Torna Dettaglio"/>
                <f:param name="bean" value="beanAspetto"/>                        
            </t:commandLink>
            <f:verbatim></td></f:verbatim>    
            <f:verbatim><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
            <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
            <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
            <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></f:verbatim>    
            
            <f:verbatim><td></f:verbatim>    
            <t:commandLink id="aiuto" onclick="loadurl('info/legendaBottoniGestisci.jsf');" immediate="true">
                <t:graphicImage url="image/help.png" border="0" title="Aiuto"/>
            </t:commandLink>
            <f:verbatim></td></f:verbatim> 
                                    
            <f:verbatim><td></td><td></td><td></td><td></td><td></td><td></td><td></td></f:verbatim>    
            
            <f:verbatim></tr></f:verbatim>    
            
            <f:verbatim></table></f:verbatim>     
        </t:panelTab>
    </h:form>
    
    <jsp:include page="/piePagina.jsp"/>    
</f:view>    